package com.challenge.smsweb.studentmanage;

import com.challenge.smsbase.Controller.GenericController;
import com.challenge.smsdao.studentmanage.domain.Student;
import com.challenge.smsservice.studentmanage.service.StudentManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author MY
 */
@RestController
@RequestMapping("student")
public class StudentController extends GenericController<Student,Long, StudentManager> {
    StudentManager studentManager;

    /**
     * setStudentManager
     * @param studentManager
     */
    @Autowired
    public void setStudentManager(StudentManager studentManager) {
        this.studentManager = studentManager;
        this.manager = this.studentManager;
    }
}
